<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="__THEMES__/style/common.css" />
       	<link rel="stylesheet" type="text/css" href="__THEMES__/style/admin_ui.css" />
       	<link rel="stylesheet" type="text/css" href="__PUBLIC__/editor/themes/default/default.css" />
       	<link rel="stylesheet" type="text/css" href="__THEMES__/style/abpicture.css" media="screen" />
       	
       	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/plugin/formstyle.js"></script>
        
        <script type="text/javascript" src="__JS__/jQuery/plugin/artDialog/jquery.artDialog.js?skin=aero"></script>
        <script type="text/javascript" src="__JS__/jQuery/plugin/artDialog/plugins/iframeTools.js"></script>
        
		<script charset='utf-8' src='__PUBLIC__/editor/kindeditor.js'></script>
        <script charset='utf-8' src='__PUBLIC__/editor/lang/zh_CN.js'></script>
        
        <include file="Public:js_navigation" />
        <include file="Public:js_sidebar" />
        
        <include file="Public:swfupload" />
        
        <script type="text/javascript">
        	var editor;
			KindEditor.ready(function(K){
				editor = K.create("#content",{
					width : "80%",
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'link']
				});
			});
        	
            $(function(){
                
                picslist();
                
                _checkpress("input[name='title']");
				$("form").submit(function(){
					if (_checkform("input[name='title']",'*标题不能为空') == false) return false;
				});
				
            });
            
        </script>
        
        
		<title>{:C('ADMIN_TITLE')}</title>
	</head>
	<body>
		<include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">
                        
                        <div id="preview" style="position:absolute; display:none; " class="showpic"> <img name="pic_a1" id="pic_a1"></div>
                                              
                        <div class="a_table">
		
					    	<form action="__URL__/insert" method="post">
					    	<input type="hidden" name="type" value="picture" />
					    	<input type="hidden" name="lang" value="zh-cn" />
							<table cellspacing="1" width="100%" class="form_table">
								<tr>
									<td align="right" width="10%">标题</td>
									<td align="left" width="90%"><input type="text" name="title" class="input_text w480" /></td>
								</tr>
								<tr>
									<td align="right">分类</td>
									<td align="left">
										<select name="cid" class="input_text" style="width:auto;">
											<option value="">请选择分类</option>
											{$option}
										</select>
									</td>
								</tr>
								<tr>
									<td align="right">属性</td>
									<td align="left">
										<input type="checkbox" name="set_top" value="1" /> 置顶 &nbsp;&nbsp;
										<input type="checkbox" name="recommend" value="1" /> 推荐 &nbsp;&nbsp;
									</td>
								</tr>
								<tr>
									<td align="right">状态</td>
									<td align="left">
										<input type="radio" name="status" value="1" checked="checked" /> 显示 &nbsp;&nbsp;
										<input type="radio" name="status" value="0" /> 隐藏 &nbsp;&nbsp;
									</td>
								</tr>
								<tr>
									<td align="right">标签</td>
									<td align="left"><input type="text" name="tags" class="input_text w480" /> 多个用空格分割</td>
								</tr>
								<tr>
									<td align="right">缩略图</td>
									<td align="left">
										<input type="text" name="thumb" id="thumb" value="" class="input_text w480" />
									</td>
								</tr>
								<tr id="thumb_pic_tr" style="display:none;">
									<td align="right">&nbsp;</td>
									<td align="left"><img src="__PUBLIC__/images/no_thumb.jpg" id="thumb_pic" /></td>
								</tr>
								<tr>
									<td align="right">上传图片</td>
									<td align="left">
										<div style="position: relative">
											<span id="spanButtonPlaceholder"></span>
											<input type="button" class="mininput" id="btnUpload" value="批量选择" />
											<input type="button" disabled="disabled" class="mininput" id="btnCancel" value="  中止上传  " />
										</div>
									</td>
								</tr>
								<tr>
									<td align="right">上传进度</td>
									<td align="left">
										<div id="divLoadingContent" class="content" style="display: none;">上传组件正在加载中...</div>
										<div id="divLongLoading" class="content" style="display: none;">上传组件加载超时!请确保浏览器支持FLASH 10!</div>
										<div id="divAlternateContent" class="content" style="display: none;">上传组件加载失败!请确保浏览器支持FLASH 10!</div>  
										<div class="fieldset flash" id="fsUploadProgress"></div>
										<p id="divStatus">提示: 可以按 Ctrl 或 Shift 键多选.</p>
									</td>
								</tr>
								<tr>
									<td align="right">图片列表</td>
									<td align="left">
										<div id="pics_upload_list"><img src="../Public/images/loading.gif" align="absmiddle"> 列表加载中...</div>
									</td>
								</tr>
								<tr>
									<td align="right">组图介绍</td>
									<td align="left"><textarea name="content" id="content" style="width: 100%; height:260px;"></textarea></td>
								</tr>
								<tr>
									<td align="right"></td>
									<td align="left">
										<div class="submit_default_box">
											<input type="submit" class="submit_default" value="提交表单" />
											<span class="submit_default_icon" id="submit_icon"></span>
										</div>
									</td>
								</tr>
							</table>
							</form>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
	</body>
</html>